package edu.zut.cs.network;

import java.util.Scanner;

public class CylinderVolume {
    public static void main(String[] args){
        System.out.println("请输入圆柱体的半径和长度：");
        Scanner input = new Scanner(System.in);
        double radius = input.nextInt();
        double length = input.nextInt();
        double pi=Math.PI;
        double area = radius * radius * pi;
        double volume = area * length;
        System.out.println("该圆柱体的体积为："+volume);
    }
}
